package com.zd.service.lmpl;/**
 * @Description: OtherdeliveryServicelmpl
 * @Author:pioneer
 * @Date: 2021-07-23
 * @Version:v1.0
 */

import com.zd.mapper.OtherdeliveryMapper;
import com.zd.service.lnter.OtherdeliveryServicelnter;
import com.zzg.entity.Otherdelivery;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: OtherdeliveryServicelmpl
 * @Author:pioneer
 * @Date: 2021-07-23
 * @Version:v1.0
 */
@Service
public class OtherdeliveryServicelmpl implements OtherdeliveryServicelnter {

    @Autowired
    private OtherdeliveryMapper otherdeliveryMapper;
    /**
     * 查询外包派送列表相关的所有信息
     *
     * @return 外包派送集合
     */
    @Override
    public List<Otherdelivery> selectOtherdeliverylist() {
        return otherdeliveryMapper.selectOtherdeliverylist ();
    }

    /**
     * 分页查询外包派送列表相关的所有信息
     *
     * @param page  页码
     * @param entry 条目数
     * @return 外包派送集合
     */
    @Override
    public List<Otherdelivery> pagingqueryOtherdeliverylist(int page, int entry) {
        return otherdeliveryMapper.pagingqueryOtherdeliverylist ((page-1)*entry,entry);
    }

    /**
     * 通过多条件查询外包派送列表信息
     *
     * @param otherdelivery 运外包派送对象
     * @return 外包派送集合
     */
    @Override
    public List<Otherdelivery> getOtherdeliverylistwhere(Otherdelivery otherdelivery) {
        return otherdeliveryMapper.getOtherdeliverylistwhere (otherdelivery);
    }

    /**
     * 通过多条件查询外包派送列表信息并分页
     *
     * @param otherdelivery 运外包派送对象
     * @param page          页码
     * @param entry         条目数
     * @return 外包派送集合
     */
    @Override
    public List<Otherdelivery> conditionqueryOtherdeliverylist(Otherdelivery otherdelivery, int page, int entry) {
        return otherdeliveryMapper.conditionqueryOtherdeliverylist (otherdelivery,(page-1)*entry,entry);
    }

    /**
     * 通过派送单号查询外包派送信息
     *
     * @param deliverynumber 派送单号
     * @return 外包派送对象
     */
    @Override
    public Otherdelivery getOtherdeliveryByid(String deliverynumber) {
        return otherdeliveryMapper.getOtherdeliveryByid (deliverynumber);
    }
}
